package com.grj.parking.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 停车场设备表
 * @TableName parking_device
 */
@TableName(value ="parking_device")
@Data
public class ParkingDevice implements Serializable {
    /**
     * 设备ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 停车场ID
     */
    @TableField(value = "lot_id")
    private Long lotId;

    /**
     * 设备编码
     */
    @TableField(value = "device_code")
    private String deviceCode;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    private String deviceName;

    /**
     * 设备类型(1-道闸,2-摄像头,3-探测器,4-充电桩)
     */
    @TableField(value = "device_type")
    private Integer deviceType;

    /**
     * IP地址
     */
    @TableField(value = "ip_address")
    private String ipAddress;

    /**
     * 安装位置
     */
    @TableField(value = "location")
    private String location;

    /**
     * 状态(0-离线,1-在线,2-故障)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 最后在线时间
     */
    @TableField(value = "last_online_time")
    private Date lastOnlineTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}